/**
 * Copyright &copy; 2012-2016
 * <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights
 * reserved.
 */
package com.thinkgem.jeesite.modules.advertising.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.advertising.dao.AdvertisingPohotoDao;
import com.thinkgem.jeesite.modules.advertising.entity.AdvertisingPohoto;

/**
 * 广告图片管理Service
 * 
 * @author JiangYongKang
 * @version 2016-12-15
 */
@Service
@Transactional(readOnly = true)
public class AdvertisingPohotoService
        extends CrudService<AdvertisingPohotoDao, AdvertisingPohoto> {

    @Autowired
    private AdvertisingPohotoDao advertisingPohotoDao;

    public List<AdvertisingPohoto> getTop() {
        return advertisingPohotoDao.getTop();
    }

    public List<AdvertisingPohoto> getBottom() {
        return advertisingPohotoDao.getBottom();
    }

    public AdvertisingPohoto get(String id) {
        return super.get(id);
    }

    public List<AdvertisingPohoto> findList(
            AdvertisingPohoto advertisingPohoto) {
        return super.findList(advertisingPohoto);
    }

    public Page<AdvertisingPohoto> findPage(Page<AdvertisingPohoto> page,
            AdvertisingPohoto advertisingPohoto) {
        return super.findPage(page, advertisingPohoto);
    }

    @Transactional(readOnly = false)
    public void save(AdvertisingPohoto advertisingPohoto) {
        super.save(advertisingPohoto);
    }

    @Transactional(readOnly = false)
    public void delete(AdvertisingPohoto advertisingPohoto) {
        super.delete(advertisingPohoto);
    }

}